package com.nanjia.boot.warehouse.storagelocation.model.form;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
import lombok.Getter;
import lombok.Setter;

import java.io.Serial;
import java.io.Serializable;

/**
 * 仓库库位表单对象
 *
 * @author 周洋
 * @since 2025-08-22 09:39
 */
@Getter
@Setter
@Schema(description = "仓库库位表单对象")
public class WarehouseStorageLocationForm implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    private Long id;

    @Schema(description = "仓库")
    @NotNull(message = "仓库不能为空")
    private Long warehouseId;

    @Schema(description = "库位号")
    @NotBlank(message = "库位号不能为空")
    @Size(max=50, message="库位号长度不能超过50个字符")
    private String storageLocation;


}
